package com.chat.entry.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum GroupMemberIsDisturb {
    DISTURB(0, "不免打扰"),
    NOTDISTURB(1, "免打扰");

    @EnumValue   // ✅ 标记这个字段作为存储到数据库的值
    private Integer idDisturb;
    private String description;

    GroupMemberIsDisturb(Integer idDisturb, String description) {
        this.idDisturb = idDisturb;
        this.description = description;
    }
}
